package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkPackageWeightDifferenceEnum {
    packageCode("packageCode", "包号"),
    uploadTime("uploadTime", "上传时间"),
    collectPackageNetwork("collectPackageNetwork", "集包网点"),
    collectPackageSuperiorsNetwork("collectPackageSuperiorsNetwork", "集包上级网点"),
    inPackageDeliveryNetwork("inPackageDeliveryNetwork", "包内件收件网点"),
    deliveryNetworkTicket("deliveryNetworkTicket", "收件网点票数"),
    deliveryNetworkInPackageWeight("deliveryNetworkInPackageWeight", "收件网点包内件重量"),
    centreNext("centreNext", "中心下一站"),
    aimProvince("aimProvince", "目的省份"),
    aimCity("aimCity", "目的城市"),
    inPackageTicket("inPackageTicket", "包内件总数"),
    packageWeight("packageWeight", "包重"),
    inPackageWeight("inPackageWeight", "包内件重量"),
    packageAndInPackageWeight("packageAndInPackageWeight", "包与包内件差重");

    private final String code;
    private final String info;

    NetworkPackageWeightDifferenceEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkPackageWeightDifferenceEnum value : NetworkPackageWeightDifferenceEnum.values()) {
            if (value.code.equals(code)) {
                return value.info;
            }
        }
        return "";
    }
}
